package com.neudu.yiyang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yiyang.pojo.Customerpreference;
import com.neudu.yiyang.service.CustomerpreferenceService;
import com.neudu.yiyang.mapper.CustomerpreferenceMapper;
import com.neudu.yiyang.vo.CustomerPreferenceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author 16462
* @description 针对表【customerpreference】的数据库操作Service实现
* @createDate 2025-03-31 21:56:23
*/
@Service
public class CustomerpreferenceServiceImpl extends ServiceImpl<CustomerpreferenceMapper, Customerpreference>  implements CustomerpreferenceService {
    /**
     * 实现分页查询方法
     */

    @Override
    public List<Map<String, Object>> selectWithCustomerName(String keyword) {
        return baseMapper.selectWithCustomerName(keyword);
    }

    @Override
    public Map<String, Object> selectByIdWithCustomerName(Integer id) {
        return baseMapper.selectByIdWithCustomerName(id);
    }
    @Override
    public List<Map<String, Object>> selectWithCustomerNameAndFilterDeleted(String keyword) {
        return baseMapper.selectWithCustomerNameAndFilterDeleted(keyword);
    }
}



